////
////  Singleton.m
////  TribalWar_dev
////
////  Created by ＣＳＴ ＣＳＴ on 8/20/12.
////  Copyright (c) 2012 ＣＳＴ. All rights reserved.
////
//
//#import "Singleton.h"
//
//@implementation Singleton
//static Singleton* shareSingleton = nil;
//
//+ (Singleton *)shareSingle
//{
//    @synchronized([Singleton class])
//    {
//        if (!shareSingleton) {
//
//            shareSingleton = [[Singleton alloc]init];
//        }
//        return shareSingleton;
//
//    }
//    return nil;
//}
//
//+ (id)alloc
//{
//    @synchronized([Singleton class])
//    {
//        NSAssert(shareSingleton == nil, @"Attempted to allocate a second of a singleton");
//        shareSingleton = [super alloc];
//        return shareSingleton;
//    }
//    return nil;
//}
//
//- (id)init
//{
//    self = [super init];
//    if (self!=nil) {
//    }
//    return self;
//}
//
//- (void)sayHello
//{
//    NSLog(@"Hello");
//}
//
//@end
